package com.akl.ssmspringboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 异常页定义
 */
@Controller
public class ExceptionController {

    @RequestMapping("/testError")
    public ModelAndView testError() {
        int i = 1 / 0;
        ModelAndView mv = new ModelAndView("error/error");
        return mv;
    }
}
